#ifndef _STLSMATRIX_H_
#define _STLSMATRIX_H_

#include "main.h"

/*
 * InitMat functions as follows:
 *  set col, row and num to 0
 *  allocate memory for item[]
 */
Status InitMat(STLSMatrix *M);

/*
 * GetMat functions as follows:
 *  input the number of column, row and non-zero elements of M
 *  input the non-zero elements as triples
 *  end the input with EOF or '\n'
 */
Status GetMat(STLSMatrix *M);

/*
 * TransMat functions as follows:
 * get the transpositon of M
 * stores it in TM
 */
Status TransMat(STLSMatrix *M, STLSMatrix *TM);

#endif